package win.smartown.aqst.demo.ui.main;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;

import win.smartown.aqst.activity.StateActivity;
import win.smartown.aqst.demo.R;
import win.smartown.aqst.demo.contract.MainContract;

public class MainActivity extends StateActivity<MainContract.Presenter> implements MainContract.View {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mPresenter.getWeather();
        TextView textView = findViewById(R.id.textView);
        textView.setText("no problem!");
    }

    @Override
    public int getContentLayout() {
        return R.layout.activity_main;
    }

    @Override
    protected MainContract.Presenter onCreatePresenter() {
        return new MainContract.Presenter(this);
    }

}
